package com.tang.consumer.controller;

import com.tang.domain.InfoUser;
import com.tang.service.InfoUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Tang
 * @classname UserController
 * @description [  ]
 * @date 2021/1/24 15:09
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    public InfoUserService infoUserService;

    @GetMapping("/getById")
    public InfoUser getUserById(String id) {
        return infoUserService.getInfoUserById(id);
    }
}